import request from '@/utils/request'

// 获取所有角色列表
export const getAllUserListRequest = params => request.get('/sys/role', { params })

// 添加角色
export const addUserAtSettingRequest = data => request.post('/sys/role', data)

// 根据 ID 更新角色
export const updateUserByIdRequest = data => request.put(`/sys/role/${data.id}`, data)

// 根据 ID 获取角色详情
export const getUserDetailAtSettingByIdRequest = id => request.get(`/sys/role/${id}`)

// 根据 ID 删除角色
export const deleteUserByIdRequest = id => request.delete(`/sys/role/${id}`)
